package com.lavender.async._common;

import lombok.Getter;

/**
 * <p>
 * 通用错误码枚举
 * </p>
 *
 * @author: zhu.chen
 * @date: 2020/12/29
 * @version: v1.0.0
 */
@Getter
public enum CommonErrorCodeEnum implements IErrorCode {

    /**
     * 成功
     */
    SUCCESS("0", "success"),

    /**
     * 错误
     * 真实项目中需要定义真实的错误码
     */
    FAIL("400", "fail");

    private String code;

    private String message;

    CommonErrorCodeEnum(String code) {
        this.code = code;
    }

    CommonErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
